Switch Server Test vs Real
For Android
In Android Studio, config file strings.xml, set value = 0 for server Test, value = 1 for server Real.
<resources>
...
<string name="DzoSDKServer">0</string> <!-- 0 : Server Test | 1 : Server Real-->
...
</resources>
For iOS
In file Dzo_Plugin.m
- Set Enviroment (Real/Test)
- Set Debug mode view (Remove it when release)
- Init connnect on didFinishLaunchingWithOptions
- Show Age Floating Gadget
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//Step 1: Define Enviroment : REAL_MOD / TEST_MOD
[[DZOSDKCoreKit sharedInstance] setEnviroment:TEST_MOD];
//Step 2: Init Root View
[[DZOSDKCoreKit sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
return YES;
}